<div class="box">
  <div class="box-header">
    
    <ob_link><a class="btn" href="{:url('attendanceAdd')}"><i class="fa fa-plus"></i> 新 增</a></ob_link>
    
  </div>
    
  <div class="box-body table-responsive">
    <table  class="table table-bordered table-hover">
      <thead>
      <tr>
          <th>图片</th>
          <th>员工姓名</th>
          <th>性别</th>
          <th>出勤次数</th>
          <th>请假次数</th>
          <th>是否警告</th>
          <th>创建时间</th>
          <th class="status-th">状态</th>
          <th>操作</th>
      </tr>
      </thead>
      
      {notempty name='list'}
        <tbody>
            {volist name='list' id='vo'}
                <tr>
                  <td><img class="admin-list-img-size" src="{$vo.pic|get_picture_url}"/></td>
                  <td>{$vo.name}</td> 
                  <td>{$vo.sex}</td>
                  <td>{$vo.time}</td>
                  <td>{$vo.leave}</td>
                  {if $vo.leave >=3}
                   <td><span style="color:#f00;font-weight: bold;">警 告</span></td>

                                 
                  {else if }
                  <td>正 常</td>
                  {/if}


                  <td>{$vo.create_time}</td>
                  {if $vo.status ==2}
                   <td><a class="ajax-get" href="{:url('setStatus', array('ids' => $vo['id'], 'status' => 3))}">{$vo.status_text}</a></td>
                    {else if $vo.status ==3}
                   <td> <a class="ajax-get" href="{:url('setStatus', array('ids' => $vo['id'], 'status' => 2))}">{$vo.status_text}</a></td>
                   {/if}
                  
                  <td class="col-md-2 text-center">
                      <ob_link><a href="{:url('attendanceEdit', array('id' => $vo['id']))}" class="btn"><i class="fa fa-edit"></i> 编 辑</a></ob_link>
                      &nbsp;
                      
                      <ob_link><a class="btn confirm ajax-get"  href="{:url('attendanceDel', array('id' => $vo['id']))}"><i class="fa fa-trash-o"></i> 删 除</a></ob_link>
                  </td>
                </tr>
            {/volist}
        </tbody>
        {else/}
        <tbody><tr class="odd"><td colspan="7" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
      {/notempty}
    </table>
    {include file="layout/batch_btn_group"/}
  </div>

  <div class="box-footer clearfix text-center">
      {$list->render()}
  </div>

</div>